package com.onetech.adrewards.free.config;

import com.onetech.adrewards.free.objects.DeviceInfoDTO;
import com.onetech.adrewards.free.objects.StartUpDTO;

public class AppConfig {
	
	public static String apiAppKey="76552d4faa4dd35c";
	
	public static int DBVERSION=1;
	public static String uId="";
	public static String apiKey="76552d4faa4dd35b";
	public static String appKey="ncIdX3la";
	public static String token="";
	public static DeviceInfoDTO deviceInfo=null;
	public static StartUpDTO config=null;
	
	//public static int userCoins=0;
	
	public static int MIN_COIN_EXCHANGE = 500;
	public static int BONUS_MAX_COIN = 10;
	public static boolean LOGIN_BONUS=false;
	public static int AD_SORT = 2;
	
	public static final int PAGE_ITEMS_LIMIT=30;
	
	public class Cache{
		public static final String ADREWARD_NAME="AdReward";
		public static final int ADREWARD_NUMBER=500;
		public static final String ADREWARD_PAGE_KEY="adrewardpage";
		
		public static final String NEWS_NAME="News";
		public static final int NEWS_NUMBER=200;
		
		public static final String POINT_HISTORY_NAME="PointHistory";
		public static final int POINT_HISTORY_NUMBER=200;
		public static final String POINT_HISTORY_KEY="pointhistory";
		
		public static final String LIST_GIFTCARD_NAME="Listgiftcard";
		public static final int LIST_GIFTCARD_NUMBER=200;
		public static final String LIST_GIFTCARD_KEY="listgiftcard";
		
		public static final String COMMON_NAME="Common";
		public static final int COMMON_NUMBER=50;
		
		public static final String NEWS_PAGE_KEY="newspage";
		
		public static final String ONE_TECH_SHAREPREFENCE="OneTechPreference";
		
		public static final String ONE_TECH_LAST_USE="OneTechLastUse";
		public static final String ONE_TECH_USER_ID="UserID";
		public static final String ONE_TECH_USER_POINTS="UserPoints";
		public static final String ONE_TECH_USE_TOKEN="UserToken";
		public static final String ONE_TECH_FIRST_START_UP_FLAG="FirstStartUpFlag";
		public static final String REVIEW_APP_KEY="ReviewApp";
	}
	public class URLRequestApi{
		public static final String domain="http://test.adreward.onetechonline.com/v2";
	//	public static final String domain="http://adreward.onetechonline.com/v2";
		
		//public static final String domain="http://adreward.onetechonline.com/index.php/v2";
		public static final String GET_USER_INFO_URL=domain+"/mem/";
		public static final String GET_USER_COIN_URL=domain+"";
		public static final String GET_USER_EXCHANGED=domain+"/exchange/search/";
		public static final String GET_USER_CHECK_EMAIL=domain+"/exchange/checkmember/";
		
		public static final String GET_EXCHANGED_GIFT_CARD_INFO=domain+"/exchange/confirm/";
		public static final String GET_EXCHANGE_PROCESS=domain+"/exchange/process";
		public static final String GET_GIFT_CARD_URL=domain+"";
		public static final String GET_NEWS_URL=domain+"/news/list/";
		public static final String GET_START_UP_INFO=domain+"/system";
		public static final String GET_POINT_HISTORY=domain+"/mem/listcoin/";
		public static final String GET_LIST_GIFT_CARD=domain+"/exchange/listgiftcard/";
		public static final String GET_MAIL_DOMAIN=domain+"/exchange/getmaildomain/";
		public static final String GET_BONUS_FOR_LOGIN=domain+"/loginbonus/";
		
		public static final String GET_SLIDE_BANNER_HOME=domain+"/banner/1/1";
		public static final String GET_EXCHANGE_BANNER=domain+"/banner/1/2";
		public static final String GET_INVITE_FRIEND_INFO=domain+"/invite/";
		public static final String GET_INVITED_FRIEND_INFO=domain+"/invited/";
		public static final String GET_REGISTER_INVITE_CODE=domain+"/createmem";
		public static final String GET_SENDMAIL_INVITE_CODE=domain+"/sendmailinvite/";
		public static final String GET_SENDMAIL=domain+"/sendmail/";

		public static final String GET_INVITE_COIN=domain+"/doinvitecoin/";
		public static final String GET_REVIEW_COIN=domain+"/doreviewcoin/";
		public static final String GET_SOCIAL_SHARE=domain+"/getsocialshare/";
		public static final String GET_SOCIAL_COIN = domain+"/dosocialcoin/";
		
		public static final String POST_FEEDBACK_USER=domain+"/feedback/create";
		
		public static final String GET_REGIST_CGM = domain+"/registergcm";
		public static final String GET_REMOVE_CGM = domain+"/unregistergcm";
		public static final String GET_AD = domain+"/ad/";
		
		public static final String GET_STATIC_PAGE = "http://adreward.onetechonline.com/index.php/v2/page/";		
		
		
		
	}
	public class AdRewardKey{
		//level 1;
		public static final String total_cnt="total_cnt";//total ad
		public static final String data_cnt="data_cnt";	
		public static final String m_owner_id="m_owner_id";
		public static final String registered_cnt="registered_cnt";
		public static final String lottery_cnt="lottery_cnt";
		public static final String user_rank="user_rank";
		//level 2
		public static final String list_view="list_view";
		
		//level 3
		public static final String ad="ad";
		public static final String c_id="c_id";
		public static final String scheme="scheme";
		public static final String ad_id="ad_id";
		public static final String c_owner_id="c_owner_id";
		public static final String content_name="content_name";
		public static final String career="career";
		public static final String cate_id="cate_id";
		public static final String site_type="site_type";
		public static final String banner_text_1="banner_text_1";
		public static final String banner_img_1="banner_img_1";
		public static final String banner_img_2="banner_img_2";
		public static final String banner_img_alt="banner_img_alt";
		public static final String content_exp="content_exp";
		public static final String attribute="attribute";
		public static final String appli_url="appli_url";
		public static final String platform="platform";
		public static final String distributors="distributors";
		public static final String max_point="max_point";
		public static final String reward_cate_id="reward_cate_id";
		public static final String kbn="kbn";
		public static final String count_type_for_user="count_type_for_user";
		public static final String banner_id="banner_id";
		public static final String pb_wait_time="pb_wait_time";
		public static final String ad_qr_img="ad_qr_img";
		public static final String ad_tag_of_point_back="ad_tag_of_point_back";
		public static final String site_name="site_name";
		public static final String point_unit="point_unit";
		public static final String is_app="is_app";
		public static final String is_install_action="is_install_action";
		public static final String charge_type="charge_type";
		public static final String charge_exp="charge_exp";
		public static final String action_cate_id="action_cate_id";
		public static final String cate_name="cate_name";
		public static final String dis_expired_end_date="dis_expired_end_date";
		public static final String ranking_update_data="ranking_update_data";
		public static final String delivery_target="delivery_target";
		public static final String has_video="has_video";
		public static final String video_ad_c_id="video_ad_c_id";
		public static final String video_finish_url="video_finish_url";
		public static final String content_manage_category="content_manage_category";
		public static final String rank_point_rate="rank_point_rate";
		public static final String total_p_cnt="total_p_cnt";
	}
}
